fold markers

This commit is contained in:
ManjaroOne666 2018-03-15 15:26:21 +00:00
parent 949ce26af2
commit aa52e4ba82
1 changed files with 17 additions and 26 deletions

43
vimrc
View File

@ -1,8 +1,7 @@
filetype off " required filetype off " required
set ttyfast set ttyfast
" #plugins{{{
" #plugins
set runtimepath+=~/.vim/bundle/Vundle.vim set runtimepath+=~/.vim/bundle/Vundle.vim
call vundle#begin() call vundle#begin()
@ -81,11 +80,9 @@ Plugin 'ludovicchabant/vim-gutentags'
call vundle#end() " required call vundle#end() " required
filetype plugin indent on " required filetype plugin indent on " required
"}}}
" #settings{{{
" #settings
" set t_Sf=<Esc>[3%p1%dm " foreground colour " set t_Sf=<Esc>[3%p1%dm " foreground colour
if &term == 'xterm-256color' if &term == 'xterm-256color'
set termguicolors set termguicolors
@ -148,8 +145,9 @@ set listchars=eol:¬,tab:->,trail:~,extends:>,precedes:<,space:·
set textwidth=180 set textwidth=180
set formatoptions=cq set formatoptions=cq
set wrapmargin=0 set wrapmargin=0
"}}}
" key #mappings " key #mappings{{{
let g:mapleader = "\<space>" let g:mapleader = "\<space>"
nnoremap <leader>rc :so $MYVIMRC<CR> nnoremap <leader>rc :so $MYVIMRC<CR>
@ -243,18 +241,15 @@ nnoremap <leader>hl :nohlsearch<CR>
" devdocs mapping " devdocs mapping
nnoremap <leader>dd :DD<CR> nnoremap <leader>dd :DD<CR>
"}}}
" #abbreviations{{{
" #abbreviations
iabbrev adn and iabbrev adn and
iabbrev waht what iabbrev waht what
iabbrev tehn then iabbrev tehn then
"}}}
" #statusline format{{{
" #statusline format
" isactive = 0 when inactive, 1 otherwise " isactive = 0 when inactive, 1 otherwise
function! GetStatus(isactive) function! GetStatus(isactive)
let l:separator='%#StatusLineSeparator#' let l:separator='%#StatusLineSeparator#'
@ -328,9 +323,9 @@ augroup status
autocmd WinLeave * setlocal statusline=%!GetStatus(0) autocmd WinLeave * setlocal statusline=%!GetStatus(0)
autocmd InsertChange * setlocal statusline=%!GetStatus(1) autocmd InsertChange * setlocal statusline=%!GetStatus(1)
augroup END augroup END
"}}}
" #autocommands{{{
" #autocommands
" persistent folds " persistent folds
augroup AutoSaveFolds augroup AutoSaveFolds
@ -373,11 +368,9 @@ augroup myvimrc
au! au!
au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif
augroup END augroup END
"}}}
" #functions{{{
" #functions
function! CheckLineEnding() function! CheckLineEnding()
:normal $ :normal $
@ -427,11 +420,9 @@ if !exists('*RangerExplorer')
map <Leader>ra :call RangerExplorer()<CR> map <Leader>ra :call RangerExplorer()<CR>
endif endif
"}}}
" #plugin settings{{{
" #plugin settings
" vim-peekaboo " vim-peekaboo
let g:peekaboo_window = 'vert to 30new' let g:peekaboo_window = 'vert to 30new'
@ -570,6 +561,6 @@ let g:tagbar_type_vue = {
let g:gutentags_ctags_tagfile = '.tags' let g:gutentags_ctags_tagfile = '.tags'
let g:gutentags_ctags_exclude = ['package.json', 'Session.vim' ,'package-lock.json', 'TODO.txt'] let g:gutentags_ctags_exclude = ['package.json', 'Session.vim' ,'package-lock.json', 'TODO.txt']
"}}}
" vim: foldmethod=marker
" ze end