1
0
Fork 0

some vim tweaks

This commit is contained in:
Von Random 2015-01-26 03:31:18 +03:00
parent a1342e39ea
commit c60c920622

4
vimrc
View file

@ -16,7 +16,6 @@ set fileencodings=ucs-bom,utf-8,default,latin1
set hlsearch set hlsearch
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc
set termencoding=utf-8 set termencoding=utf-8
set number
set laststatus=2 set laststatus=2
set ignorecase set ignorecase
set smartcase set smartcase
@ -32,7 +31,6 @@ if $TERM == 'xterm' || $TERM == 'screen' || exists("$SSH_CLIENT")
endif endif
" set indentation options for specific file types " set indentation options for specific file types
autocmd FileType python setlocal ts=4 sw=4 sts=4 noexpandtab
autocmd BufNewFile *.zsh 0put =\"#!/usr/bin/env zsh\<nl>\"|$ autocmd BufNewFile *.zsh 0put =\"#!/usr/bin/env zsh\<nl>\"|$
autocmd BufNewFile *.lua 0put =\"#!/usr/bin/env lua\<nl>\"|$ autocmd BufNewFile *.lua 0put =\"#!/usr/bin/env lua\<nl>\"|$
autocmd BufNewFile *.sh 0put =\"#!/usr/bin/env bash\<nl>\"|$ autocmd BufNewFile *.sh 0put =\"#!/usr/bin/env bash\<nl>\"|$
@ -55,7 +53,7 @@ if v:version >= 700
set list set list
set listchars=tab:\|.,trail:*,nbsp:x set listchars=tab:\|.,trail:*,nbsp:x
nnoremap <leader>l :setlocal list!<cr> nnoremap <leader>l :setlocal list!<cr>
nnoremap <leader>r :setlocal number!<cr> nnoremap <leader>n :setlocal number!<cr>
" enable case indentation " enable case indentation
let g:sh_indent_case_labels=1 let g:sh_indent_case_labels=1