replaced custom script for linenumbers with a plugin
This commit is contained in:
1 parent
8692a07763
commit
915b227890
1 file changed
+4
-29
@@ -69,12 +69,9 @@ set laststatus=2
|
|||||||
set showcmd
|
set showcmd
|
||||||
|
|
||||||
"" linenumbers
|
"" linenumbers
|
||||||
set relativenumber
|
|
||||||
set ruler
|
|
||||||
set number
|
set number
|
||||||
set relativenumber
|
set relativenumber
|
||||||
autocmd InsertEnter * :setlocal nornu | :setlocal nu
|
set ruler
|
||||||
autocmd InsertLeave * if flexnu | :setlocal relativenumber
|
|
||||||
"" }}}
|
"" }}}
|
||||||
|
|
||||||
"####################################################################
|
"####################################################################
|
||||||
@@ -114,10 +111,6 @@ nnoremap <silent><C-C> :nohl<CR>
|
|||||||
let notabs = 1
|
let notabs = 1
|
||||||
nnoremap <silent> <F8> :let notabs=!notabs<Bar>:if notabs<Bar>:tabo<Bar>:else<Bar>:tab ball<Bar>:tabn<Bar>:endif<CR>
|
nnoremap <silent> <F8> :let notabs=!notabs<Bar>:if notabs<Bar>:tabo<Bar>:else<Bar>:tab ball<Bar>:tabn<Bar>:endif<CR>
|
||||||
|
|
||||||
" toggle linenumber switching
|
|
||||||
let flexnu = 1
|
|
||||||
nnoremap <silent> <F9> :let flexnu=!flexnu<Bar>:if flexnu<Bar>:setlocal rnu<Bar>:else<Bar>:setlocal nornu<bar>:setlocal nu<Bar>:endif<CR>
|
|
||||||
|
|
||||||
" switch buffers
|
" switch buffers
|
||||||
nnoremap <silent><Tab> :bn<Cr>
|
nnoremap <silent><Tab> :bn<Cr>
|
||||||
nnoremap <silent><S-Tab> :bp<Cr>
|
nnoremap <silent><S-Tab> :bp<Cr>
|
||||||
@@ -160,6 +153,7 @@ endif
|
|||||||
"####################################################################
|
"####################################################################
|
||||||
" bundles and their options {{{
|
" bundles and their options {{{
|
||||||
"####################################################################
|
"####################################################################
|
||||||
|
Bundle 'myusuf3/numbers.vim'
|
||||||
Bundle 'tpope/vim-fugitive'
|
Bundle 'tpope/vim-fugitive'
|
||||||
Bundle 'Lokaltog/vim-easymotion'
|
Bundle 'Lokaltog/vim-easymotion'
|
||||||
Bundle 'kien/ctrlp.vim'
|
Bundle 'kien/ctrlp.vim'
|
||||||
@@ -180,27 +174,6 @@ let Tlist_GainFocus_On_ToggleOpen = 1
|
|||||||
Bundle 'saltstack/salt-vim'
|
Bundle 'saltstack/salt-vim'
|
||||||
Bundle 'vim-scripts/wombat256.vim'
|
Bundle 'vim-scripts/wombat256.vim'
|
||||||
colorscheme wombat256mod " needs to be after the bundle
|
colorscheme wombat256mod " needs to be after the bundle
|
||||||
" Bundle 'itchyny/lightline.vim'
|
|
||||||
" let g:lightline = {
|
|
||||||
" \ 'colorscheme': 'wombat',
|
|
||||||
" \ 'active': {
|
|
||||||
" \ 'left': [ [ 'mode', 'paste' ],
|
|
||||||
" \ [ 'filename', 'fugitive', 'modified' ]
|
|
||||||
" \ ]
|
|
||||||
" \ },
|
|
||||||
" \ 'component': {
|
|
||||||
" \ 'modified': '%{&filetype=="help"?"":&modified?"+":&modifiable?"":"-"}'
|
|
||||||
" \ },
|
|
||||||
" \ 'component_function': {
|
|
||||||
" \ 'fugitive': 'MyFugitive',
|
|
||||||
" \ },
|
|
||||||
" \ 'component_visible_condition': {
|
|
||||||
" \ 'modified': '(&filetype!="help"&&(&modified||!&modifiable))'
|
|
||||||
" \ }
|
|
||||||
" \ }
|
|
||||||
" function! MyFugitive()
|
|
||||||
" return exists('*fugitive#head') && strlen(fugitive#head()) ? 'ᓯ '.fugitive#head() : ''
|
|
||||||
" endfunction
|
|
||||||
Bundle 'bling/vim-airline'
|
Bundle 'bling/vim-airline'
|
||||||
let g:airline#extensions#tabline#enabled = 1
|
let g:airline#extensions#tabline#enabled = 1
|
||||||
let g:airline_left_sep = ''
|
let g:airline_left_sep = ''
|
||||||
@@ -220,4 +193,6 @@ let g:gitgutter_enabled = 0
|
|||||||
noremap <silent><leader>g :GitGutterToggle<Cr>
|
noremap <silent><leader>g :GitGutterToggle<Cr>
|
||||||
Bundle 'ivyl/vim-bling'
|
Bundle 'ivyl/vim-bling'
|
||||||
Bundle 'mileszs/ack.vim'
|
Bundle 'mileszs/ack.vim'
|
||||||
|
"Bundle 'Yggdroot/indentLine'
|
||||||
|
"let g:indentLine_color_term = 239
|
||||||
"" }}}
|
"" }}}
|
||||||
Reference in new issue
Block a user