Dotfiles for my tiling window manager + terminal workflow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.8 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. set relativenumber
  2. set background=dark
  3. " set t_Co=256
  4. filetype plugin on
  5. syntax on
  6. set tabstop=4
  7. set tw=80
  8. set colorcolumn=80
  9. set shiftwidth=4
  10. set autoindent
  11. set mouse=c
  12. set clipboard=unnamedplus
  13. set foldmethod=marker
  14. autocmd VimResized * wincmd =
  15. autocmd BufNewFile,BufRead .*_aliases set syntax=sh
  16. " 'h/u3/c7/05/mokkar/.vim/plugged'
  17. " '~/.vim/plugged'
  18. " plug
  19. if empty(glob('~/.vim/autoload/plug.vim'))
  20. silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
  21. \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  22. autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
  23. endif
  24. call plug#begin('~/.vim/plugged')
  25. Plug 'vim-scripts/L9'
  26. " Plug 'vim-scripts/FuzzyFinder'
  27. Plug 'whatyouhide/vim-gotham'
  28. Plug 'nathanaelkane/vim-indent-guides'
  29. Plug 'flazz/vim-colorschemes'
  30. Plug 'felixhummel/setcolors.vim'
  31. Plug '907th/vim-auto-save'
  32. Plug 'xuhdev/vim-latex-live-preview', { 'for': 'tex' }
  33. Plug 'lervag/vimtex'
  34. Plug 'Valloric/YouCompleteMe'
  35. Plug 'honza/vim-snippets'
  36. Plug 'SirVer/ultisnips'
  37. Plug 'ervandew/supertab'
  38. " make YCM compatible with UltiSnips (using supertab)
  39. let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
  40. let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
  41. let g:SuperTabDefaultCompletionType = '<C-n>'
  42. " better key bindings for UltiSnipsExpandTrigger
  43. let g:UltiSnipsExpandTrigger = "<tab>"
  44. let g:UltiSnipsJumpForwardTrigger = "<tab>"
  45. let g:UltiSnipsJumpBackwardTrigger = "<C-tab>"
  46. call plug#end()
  47. colorscheme gotham256
  48. map <F3> :wa<CR>
  49. map <F4> :wqa<CR>
  50. map <F5> :qa!<CR>
  51. map <F7> :AutoSaveToggle<CR>
  52. set pastetoggle=<F9>
  53. map <F10> :PlugInstall<CR>
  54. map <S-Enter> O<ESC>
  55. let mapleader="\<Space>"
  56. nnoremap <leader>e o<ESC>
  57. nnoremap <leader>f za
  58. nnoremap <leader>m :call cursor(0, len(getline('.'))/2)<CR>
  59. nnoremap <leader>p :LLPStartPreview<CR>
  60. nnoremap <leader>s :set syn=sh<CR>