diff options
author | Karel Kočí <karel.koci@nic.cz> | 2016-09-13 16:24:51 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2016-09-13 16:24:51 +0200 |
commit | d9c849e25ce78d89110106ba66a0ff62f4f7b973 (patch) | |
tree | d4af350423ca9f901a53eaef65f6d1c1c47c2d3a /vimrc | |
parent | 97583f047ff5901684400483cb00d66d1aaad26d (diff) | |
download | myconfigs-d9c849e25ce78d89110106ba66a0ff62f4f7b973.tar.gz myconfigs-d9c849e25ce78d89110106ba66a0ff62f4f7b973.tar.bz2 myconfigs-d9c849e25ce78d89110106ba66a0ff62f4f7b973.zip |
Update vimrc and set wordlist for zsh
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 41 |
1 files changed, 28 insertions, 13 deletions
@@ -10,24 +10,41 @@ set exrc set secure set title +set hidden +set undofile +set undodir=~/.cache/vim-undo// +set hlsearch +set foldmethod=syntax + +" GitGutterEnable + function InitBase() - set tabstop=4 - set softtabstop=4 - set shiftwidth=4 - set noexpandtab set number - set hidden - set undofile - set undodir=~/.cache/vim-undo// set colorcolumn=82 set textwidth=82 highlight ColorColumn ctermbg=darkgray - set hlsearch - - set foldmethod=syntax +endfunction - execute 'GitGutterEnable' +" Tabs setting. In default we want 4 spaces tab, but allows also 8 spaced tabs +set noexpandtab +set tabstop=4 +set shiftwidth=4 +set softtabstop=4 +function TabToogle() + if &tabstop != 4 + set tabstop=4 + set shiftwidth=4 + set softtabstop=4 + echom 'Tab stop set to 4' + else + set tabstop=8 + set shiftwidth=8 + set softtabstop=8 + echom 'Tab stop set to 8' + endif + " Soft tab stop is here only for posibility of expandtab endfunction +command TabToogle call TabToogle() " Write as root cmap w!! w !sudo tee >/dev/null % @@ -75,8 +92,6 @@ function InitPython() map <F3> :w<cr> map <F4> :wa<cr> nmap <F9> :TagbarOpen fc<cr> - - "execute 'NERDTree' endfunction function InitC() |