Comment out folding rules for vim
This commit is contained in:
parent
dfe20d2725
commit
02c38feec7
16
vimrc
16
vimrc
@ -18,7 +18,7 @@ set history=1000
|
|||||||
set autoread " Set to auto read when a file is changed from the outside
|
set autoread " Set to auto read when a file is changed from the outside
|
||||||
set autochdir " Change current directory to be directory of current file
|
set autochdir " Change current directory to be directory of current file
|
||||||
set colorcolumn=80
|
set colorcolumn=80
|
||||||
set foldmethod=syntax
|
"set foldmethod=syntax
|
||||||
|
|
||||||
if $TMUX == ''
|
if $TMUX == ''
|
||||||
set clipboard+=unnamed
|
set clipboard+=unnamed
|
||||||
@ -80,13 +80,13 @@ function! s:CloseIfOnlyNerdTreeLeft()
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! FoldText()
|
"function! FoldText()
|
||||||
let nl = v:foldend - v:foldstart + 1
|
" let nl = v:foldend - v:foldstart + 1
|
||||||
let linetext = getline(v:foldstart)
|
" let linetext = getline(v:foldstart)
|
||||||
let txt = linetext . ' ' . nl . ' lines '
|
" let txt = linetext . ' ' . nl . ' lines '
|
||||||
return txt
|
" return txt
|
||||||
endfunction
|
"endfunction
|
||||||
set foldtext=FoldText()
|
"set foldtext=FoldText()
|
||||||
|
|
||||||
" Vim Tabs
|
" Vim Tabs
|
||||||
map <leader>tt :tabnew<cr>
|
map <leader>tt :tabnew<cr>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user