Skip to content

Commit

Permalink
toggle linenum column
Browse files Browse the repository at this point in the history
  • Loading branch information
akash0x53 committed Jun 21, 2020
1 parent ee720d1 commit 0df005d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ function! s:check_back_space() abort
return !col || getline('.')[col - 1] =~# '\s'
endfunction

function ToggleLineNumber()
execute "set number!"
execute "set relativenumber!"
endfunction

"---------- Basic ----------
set nocompatible
set noswapfile "disable ugly .swp files
Expand Down Expand Up @@ -115,6 +120,7 @@ noremap <leader><space> :nohl<CR>
nnoremap <leader>gb :Git blame<CR>
nnoremap <leader>gd :Git diff %<CR>
nnoremap <leader>gc :Git commit %<CR>
map <silent><F3> :call ToggleLineNumber()<CR>
execute "noremap <silent><leader>t :botright terminal ++close ++rows=10 bash --rcfile ".s:bashrc."<CR>"
execute "noremap <silent><leader>p :botright terminal ++close ++rows=10 ".s:python."<CR>"
map <C-n> :NERDTreeToggle<CR>
Expand Down

0 comments on commit 0df005d

Please sign in to comment.