gibney.org
:
Technology
:
Vim
:
/etc/vim/vimrc
(Entry Nr. 355, by user 1 |
edit
)
<div class=div_content_code>set noswapfile set clipboard=unnamed set nowrap au BufRead,BufNewFile *.txt setlocal wrap " enable wrap for textfiles set linebreak set tabstop=2 set shiftwidth=2 hi nontext ctermfg=4 set background=dark set t_Co=256 set ignorecase set smartcase set noshowmode hi CursorLine cterm=none ctermbg=17 au InsertEnter * set cul au InsertLeave * set nocul nnoremap <down> gj" when wrap is on, cursor down moves down only one displayed line nnoremap <up> gk" when wrap is on, cursor up moves up only one displayed line nnoremap <tab> :tabnext<cr> set display+=lastline " when wrap is on, display partial lines at the bottom of the screen set cot+=menuone " show parameters of known functions, when you hit C+X C+O syntax on set rulerformat=\ " dont display anything in the ruler hi NonText ctermfg=16 " otherwise below the last line, ~ will be displayed. unfortunately, this kills some other things as well hi Comment ctermfg=252 hi Identifier ctermfg=34 hi phpVarSelector ctermfg=34 hi phpMemberSelector ctermfg=34 hi operator ctermfg=15 hi string ctermfg=7 hi phpConditional ctermfg=45 hi phpParent ctermfg=15 hi phpRepeat ctermfg=15 hi None ctermfg=7 hi phpConditional ctermfg=15 hi phpFunctions ctermfg=15 hi phpNumber ctermfg=15 hi phpBoolean ctermfg=15 hi phpStatement ctermfg=15 </div>
Create a new entry at this position