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.

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