Skip to content

Instantly share code, notes, and snippets.

@MahmoudDolah
Last active September 3, 2019 19:24
Show Gist options
  • Select an option

  • Save MahmoudDolah/3400dfc3db00bdd76d63b5ded0d9328b to your computer and use it in GitHub Desktop.

Select an option

Save MahmoudDolah/3400dfc3db00bdd76d63b5ded0d9328b to your computer and use it in GitHub Desktop.
Misc Vim configs
set so=999
imap jj <Esc>
set number
set relativenumber
set nohlsearch
" FZF
set rtp+=/usr/local/opt/fzf
" Clipboard
noremap <Leader>y "*y
noremap <Leader>p "*p
noremap <Leader>Y "+y
noremap <Leader>P "+p
" Buffer
map gn :bn<cr>
map gp :bp<cr>
map gd :bd<cr>
let g:NERDTreeWinPos = "left"
let g:gitgutter_enabled=1
let g:airline#extensions#tabline#enabled = 1
" Launch FZF on ',+f'
noremap <Leader>f :FZF<CR>
" Notational Velocity Vim FZF Plugin
noremap <Leader>l :NV<CR>
let g:nv_search_paths = ['~/Documents/notes', '~/Documents/logbook']
let g:nv_default_extension = '.md'
let g:nv_create_note_key = 'ctrl-f'
" let g:nv_search_paths = ['~/Documents/logbook', '~/Documents/logbook', '~/Library/Application Support/Notational Data']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment