Advertisement
Daybreaker94

_vimrc

Jun 14th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 2.10 KB | None | 0 0
  1. :colorscheme molokai
  2.  
  3. " set guifont=Lucida_Sans_Typewriter:h11:cANSI:qDRAFT
  4. set guifont=Lucida_Console:h11:cANSI:qDRAFT
  5. " set guifont=Consolas:h11:cANSI:qDRAFT
  6.  
  7.  
  8. " pathogen PLUGIN
  9. execute pathogen#infect()
  10.  
  11. " This with change tabs to spaces
  12. set tabstop=4
  13. " set softtabstop=4
  14. " set shiftwidth=4
  15. " set expandtab
  16.  
  17. filetype plugin on
  18.  
  19. syntax on
  20. set relativenumber "sets numbers relative to line
  21. set nocompatible
  22. set number
  23. set cursorline
  24. set showmatch
  25. set lazyredraw
  26.  
  27. set incsearch
  28. set hlsearch
  29.  
  30. " Indent follows above line
  31. set autoindent
  32. " Indenting for c stuff
  33. set smartindent
  34.  
  35.  
  36. " KEY MAPPINGS:
  37.  
  38. map <F6> :setlocal spell! spelllang=en_us<CR>
  39. map <F5> :set relativenumber! <CR>
  40.  
  41. map <C-n> :NERDTreeToggle<CR>
  42.  
  43. let mapleader=","
  44. map <leader>tn :tabnew<CR>
  45. map <leader>tw :tabnext<CR>
  46. map <leader>tq :-tabnext<CR>
  47.  
  48.     " Unbinds arrow keys in normal mode
  49.     " no <down> <Nop>
  50.     " no <left> <Nop>
  51.     " no <right> <Nop>
  52.     " no <up> <Nop>
  53.  
  54.     " Unbinds arrow keys in insert mode
  55.     " ino <down> <Nop>
  56.     " ino <left> <Nop>
  57.     " ino <right> <Nop>
  58.     " ino <up> <Nop>
  59.  
  60. " FINDING FILES:
  61. " Search down into subfolders
  62. " Provides tab-completeion for all file-related tasks
  63. set path+=**
  64.  
  65. " Display all matching files when we tab complete
  66. set wildmenu
  67.     " ALLLOWS:
  68.     "  - Hit tab to :find by partial match
  69.     "  - Use * to make it fuzzy
  70.  
  71.         " TAG JUMPING:
  72.         " NEEDS LINUX
  73.         " Create tags file
  74.         "command! MakeTags !ctags -R .
  75.  
  76.  
  77.  
  78. " FILETYPE SHIT:
  79.  
  80. " TYPESCRIPT:
  81. let g:typescript_indent_disable = 1
  82.  
  83. " HTML Binds:
  84. " space space to jump to next <++>
  85. autocmd FileType html inoremap <Space><Space> <Esc>/<++><Enter>"_c4l
  86.  
  87. " h1 tags
  88. autocmd FileType html inoremap ;h1 <h1></h1><Space><++><Esc>FhT>i
  89. " h2 tags
  90. autocmd FileType html inoremap ;h2 <h2></h2><Space><++><Esc>FhT>i
  91. " h3 tags
  92. autocmd FileType html inoremap ;h3 <h3></h3><Space><++><Esc>FhT>i
  93. " bold tags
  94. autocmd FileType html inoremap ;b <b></b><Space><++><Esc>FbT>i
  95. " paragraph tags
  96. autocmd FileType html inoremap ;p <p></p><Enter><++><Esc>2k$FpT>i
  97. " emphatic tags
  98. autocmd FileType html inoremap ;e <em></em><Space><++><Esc>FeT>i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement