medmond919

Interesting VIM #5

Mar 28th, 2018
722
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. " Source external config files.
  2. source $NVIM_VIMRC/plugins.vim
  3. source $NVIM_VIMRC/backups.vim
  4. source $NVIM_VIMRC/abbreviations.vim
  5.  
  6.  
  7. " Searching & Patterns --------------------------------------------{{{
  8.  
  9. set incsearch nohlsearch
  10. set ignorecase smartcase " searches are only case-sensitive when an uppercase letter is used.
  11. set showmatch " Briefly jump to matching brackets when new bracket is inserted.
  12. set gdefault " Default g flag on searches.
  13. set startofline " Seaches start at the first non-blank character or a line instead of the current cursor position.
  14.  
  15. "Set command and modifyer timeouts
  16. set timeout
  17. set timeoutlen=800
  18. set ttimeoutlen=100
  19.  
  20. "}}}
  21. " Text Display & Colorscheme --------------------------------------{{{
  22.  
  23. " Solarized, dark, with true color support and patched nerd font.
  24. colorscheme solarized
  25. set background=dark
  26. set guifont=Meslo_LG_S_DZ_Regular_for_Powerline_Nerd_Font_Complete:h12
  27.  
  28. " Force true colour on, since vim can’t detect it within tmux.
  29. let &t_8f="\<Esc>[38;2;%lu;%lu;%lum"
  30. let &t_8b="\<Esc>[48;2;%lu;%lu;%lum"
  31.  
  32.  
  33. " Line/relative numbers and number gutter col width.
  34. set number relativenumber numberwidth=4
  35. set cursorline " Cursor highlighting.
  36. set wrap linebreak " Wrap words and word break at end of lines.
  37. set nolist " Disable list when using wrap + linebreak.
  38. set textwidth=0 " No window width limit.
  39. set fileformat=unix " Set <EOL>, prevent conversion errors in Git.
  40. set encoding=utf8 fileencoding=utf8 " Set UTF-8 encoding.
  41. set conceallevel=1 " Allow syntax concealing with symbols.
  42.  
  43. "set scrolloff=1 " Number of context lines above and below cursor"
  44. " set list " Cannot have listchars with linebreak.
  45. " set listchars=tab:▸\ ,eol:¬,trail:␠,nbsp:⎵,precedes:←,extends:→
  46.  
  47.  
  48. "}}}
  49. " Hightlighting ---------------------------------------------------{{{
  50.  
  51. " Enable italicized comments (requires xterm-256color-italic).
  52. highlight Comment cterm=italic
  53.  
  54.  
  55. "}}}
  56. " Windows & Buffers -----------------------------------------------{{{
  57.  
  58. " Change the current working directory whenever you open a file,
  59. " switch buffers, delete a buffer or open/close a window.
  60. set autochdir
  61.  
  62. " Open new files even if current buffer has unsaved changes.
  63. set hidden
  64.  
  65. "set noequalalways " Do not automatically resize windows
  66.  
  67.  
  68. "}}}
  69. " Messages & Info -------------------------------------------------{{{
  70.  
  71. set showcmd " Shows typed commands in the botton right.
  72. set laststatus=2 " Set the status bar such that it always displays.
  73.  
  74. "set noshowmode " Hide the mode title bar.
  75.  
  76.  
  77. "}}}
  78. " Tabs & Indenting ------------------------------------------------{{{
  79.  
  80. " set autoindent " Next line indent defaults to the same space.
  81. set tabstop=4 shiftwidth=4 softtabstop=4 " Set tab spacing.
  82. set shiftround " Round non mutiples of tabs to the shiftwidth multiple.
  83.  
  84. "set smartindent
  85. "set expandtab
  86.  
  87.  
  88. "}}}
  89. " Text Editing ----------------------------------------------------{{{
  90.  
  91. " Make all yanking/deleting operations automatically copy to the system
  92. " clipboard (works with tmux).
  93. set clipboard=unnamedplus
  94.  
  95. " Normal backspace behaviour.
  96. set backspace=indent,eol,start
  97. set history=1000 undolevels=5000
  98. set noerrorbells visualbell t_vb=
  99. " Allow copy and pasting to Vim since Sierra upgrade.
  100.  
  101. "highlight ColorColumn ctermbg=magenta
  102. "set colorcolumn=81 "Dividing column to limit code length
  103. "call matchadd('ColorColumn', '\%81v', 100) "Column highlights when text reaches.
  104. "call matchadd('ColorColumn', '\%>80v', 100) "Highlight everything past the 80th column
  105.  
  106.  
  107. "}}}
  108. " Folding ---------------------------------------------------------{{{
  109.  
  110. " Enable folds with a fold column of 3.
  111. set foldenable foldcolumn=3
  112.  
  113. "}}}
  114. "Diff Mode --------------------------------------------------------{{{
  115.  
  116. "Stores a temporary copy of the file in the current buffer (including latest changes) and diffs it against the
  117. "version of the file on your hard drive.
  118. function! DiffWithFileFromDisk()
  119.     let filename=expand('%')
  120.     let diffname = filename.'.fileFromBuffer'
  121.     exec 'saveas! '.diffname
  122.     diffthis
  123.     vsplit
  124.     exec 'edit '.filename
  125.     diffthis
  126. endfunction
  127.  
  128.  
  129. "}}}
  130. " Mappings --------------------------------------------------------{{{
  131.  
  132. let mapleader = ","
  133.  
  134. " Normal Mode -----------------------------------------------------{{{
  135.  
  136. " ** Note: the <C-h>, <C-j> <C-k> and <C-l> mappings are already mapped
  137. " by the vim-tmux-navigator plugin as shown below:
  138.  
  139. " nnoremap <silent> <C-h>  :TmuxNavigateLeft<CR>
  140. " nnoremap <silent> <C-j>  :TmuxNavigateDown<CR>
  141. " nnoremap <silent> <C-k>  :TmuxNavigateUp<CR>
  142. " nnoremap <silent> <C-l>  :TmuxNavigateRight<CR>
  143. " nnoremap <silent> <C-h>  :TmuxNavigatePrevious<CR>
  144.  
  145.  
  146.  
  147. " Edit/source .vimrc|init.vim
  148. nnoremap <silent> <leader>ev :tabe $MYVIMRC<CR>
  149. nnoremap <silent> <leader>sv :so $MYVIMRC<CR>
  150.  
  151.  
  152. " Automatically set search patterns in 'very magic' mode.
  153. " nnoremap / /\v
  154.  
  155.  
  156. " Call custom diffmode function (see Diff Mode section).
  157. nnoremap <F7> :call DiffWithFileFromDisk()<CR>
  158.  
  159.  
  160. "_____ File Manipulation _____
  161.  
  162. " Yank from the cursor to the end of the line.
  163. nnoremap Y y$
  164.  
  165.  
  166. " Yank the current line and paste it below/above.
  167. nnoremap yj yyp
  168. nnoremap yk yyP
  169.  
  170.  
  171. " Copy the current buffer path to the clipboard
  172. nnoremap cp :let @+ = expand("%:p")<CR>
  173.  
  174.  
  175. " Change entire line.
  176. nnoremap cc 0C
  177.  
  178.  
  179. " Enter inserts a newline.
  180. nnoremap <CR> i<CR><ESC>k$
  181.  
  182.  
  183. " Add a marker in register a when moving to the bottom of the page.
  184. nnoremap G mhG
  185. nnoremap gg mggg
  186.  
  187.  
  188. " Toggle folds open and close.
  189. nnoremap <space> za
  190.  
  191.  
  192. "_____ Window/Buffer Navigation _____
  193.  
  194. " Move between buffers (Use Prefix +h/j/k/l key in tmux).
  195. nnoremap gh <C-w>h
  196. nnoremap gj <C-w>j
  197. nnoremap gk <C-w>k
  198. nnoremap gl <C-w>l
  199. " Close window
  200. nnoremap gc <C-w>c
  201.  
  202.  
  203. " Reposition buffers.
  204. nnoremap gH <C-w>H
  205. nnoremap gJ <C-w>J
  206. nnoremap gK <C-w>K
  207. nnoremap gL <C-w>L
  208.  
  209.  
  210. " Buffer next/previous.
  211. nnoremap gn :bn<CR>
  212. nnoremap gp :bp<CR>
  213. " nnoremap gq :q<CR>
  214.  
  215.  
  216. " Create a new vertical split.
  217. nnoremap gs <C-W>v
  218.  
  219.  
  220. " Allow movements over wrapped lines.
  221. nnoremap j gj
  222. nnoremap k gk
  223. nnoremap $ g$
  224. nnoremap 0 g0
  225. nnoremap p gp
  226.  
  227.  
  228. "_____ Help File Navigation _____
  229. nnoremap <silent> <RIGHT> :cnext<CR>
  230. nnoremap <silent> <RIGHT><RIGHT> :cnfile<CR><C-G>
  231. nnoremap <silent> <LEFT> :cprev<CR>
  232. nnoremap <silent> <LEFT><LEFT> :cpfile<CR><C-G>
  233.  
  234.  
  235. "_____ Not In Use _____
  236. " nnoremap <BS> :noh<CR>
  237.  
  238. " Open current file in google chrome
  239. " nnoremap <F5> :exe ':silent !chrome %'<CR>
  240.  
  241.  
  242. "}}}
  243. " Insert Mode -----------------------------------------------------{{{
  244.  
  245. " Exit insert mode (must have classic).
  246. inoremap jj <ESC>
  247.  
  248.  
  249. " Insert a newline above/below current line & preserve indentation.
  250. inoremap JJ <ESC>o
  251. inoremap KK <ESC>O
  252.  
  253.  
  254. " Move up/down a line in insert mode.
  255. inoremap GJ <DOWN>
  256. inoremap GK <UP>
  257.  
  258.  
  259. "Insert a semi-colon at the end of the line.
  260. inoremap ;; <ESC>A;<ESC>
  261.  
  262.  
  263. "_____ Omni-Complete _____
  264.  
  265. "inoremap ,o <C-x><C-o>
  266. " Remap onmi menu up/down navigation.
  267. " inoremap <C-j> <C-n>
  268. " inoremap <C-k> <C-p>
  269.  
  270.  
  271. "_____ Not In Use _____
  272. "inoremap == <C-r>=
  273.  
  274.  
  275. "}}}
  276. " Command Mode ----------------------------------------------------{{{
  277.  
  278. " Write all buffers active/hidden buffers.
  279. cnoremap W<CR> wa<CR>
  280.  
  281.  
  282. "}}}
  283.  
  284.  
  285. "}}}
  286. " Command Line Editing --------------------------------------------{{{
  287.  
  288. set wildmenu
  289. set wildmode=full:longest,full
  290.  
  291.  
  292. "}}}
  293. "Autocommands -----------------------------------------------------{{{
  294.  
  295. augroup vimrc
  296.     autocmd!
  297.     autocmd BufWritePost,BufWinLeave *.*
  298.     \   if expand('%') != '' && &buftype !~ 'nofile'
  299.     \|      mkview
  300.     \|  endif
  301.     autocmd BufRead,BufWinEnter *.*
  302.     \   if expand('%') != '' && &buftype !~ 'nofile'
  303.     \|      silent! loadview
  304.     \|  endif
  305. augroup END
  306.  
  307.  
  308. " Remembers the cursor position upon re-entering a buffer.
  309. " autocmd BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g'\"" | endif
  310.  
  311. " autocmd GUIEnter * set visualbell t_vb=
  312.  
  313.  
  314.  
  315. "_____ Automatically Equalize Splits _____
  316. augroup AutomaticallyResizeWindows
  317.     autocmd!
  318.     autocmd VimResized * wincmd =
  319. augroup END
  320.  
  321.  
  322. "_____ Highlights Extra Whitespace _____
  323. " highlight ExtraWhitespace ctermbg=red guibg=red
  324. " match ExtraWhitespace /\s\+$/
  325. " autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
  326. " autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
  327. " autocmd InsertLeave * match ExtraWhitespace /\s\+$/
  328. " autocmd BufWinLeave * call clearmatches()
  329.  
  330.  
  331. augroup SetFoldmethodAndFoldLevel
  332.     autocmd!
  333.     autocmd FileType javascript,typescript,json setlocal foldmethod=syntax
  334.     autocmd FileType javascript,html,css,scss,typescript setlocal foldlevel=99
  335. augroup END
  336.  
  337.  
  338. "TODO: Autocommand to load sessions. Look further into this. Change the
  339. "session.vim name**
  340. " autocmd VimEnter * call LoadSession()
  341. " autocmd VimLeave * call SaveSession()
  342. " function! SaveSession()
  343. "     execute 'mksession! $VIMRC_CONFIG/.vim/sessions/session.vim'
  344. " endfunction
  345. " function! LoadSession()
  346. "     if argc() == 0
  347. "         execute 'source $VIMRC_CONFIG/.vim/sessions/session.vim'
  348. "     endif
  349. " endfunction
  350.  
  351.  
  352. "}}}
  353. " Functions -------------------------------------------------------{{{
  354.  
  355. " Source function definitions.
  356. source $NVIM_VIMRC/functions.vim
  357.  
  358. nnoremap <Leader>q :call DeleteCurBufferNotCloseWindow()<CR>
  359.  
  360.  
  361. "}}}
  362. " Plugins ---------------------------------------------------------{{{
  363.  
  364. "NERD TREE --------------------------------------------------------{{{
  365. "_____ Globals _____
  366. let NERDTreeMinimalUI=1 " Simply the UI.
  367. let g:NERDTreeQuitOnOpen=1 " Close NERD Tree when opening file.
  368. let NERDTreeAutoDeleteBuffer=1 " Automatically delete buffers of files deleted with NerdTree.
  369. let NERDTreeCascadeSingleChildDir=0 " Do not collapse dirs with one child.
  370. "let NERDTreeChDirMode=2
  371. " let NERDTreeShowBookmarks=1
  372. " let NERDTreeIgnore=['\~$','\.pyc$', '\.swp$']
  373. " let NERDTreeSortOrder=['^__\.py$','\/$','*','\.swp$','\~$']
  374.  
  375.  
  376. "_____ Mappings _____
  377. " Toogle NERTree open/close.
  378. nnoremap <leader>n :NERDTreeToggle<CR>
  379.  
  380. " Open the current file in NERDTree.
  381. nnoremap <silent> <leader>v :NERDTreeFind<CR>
  382.  
  383.  
  384. "_____ Autocommands _____
  385. augroup CustomNERDTreeMappings
  386.     autocmd!
  387.     " Open NERDTree when no arguments are supplied.
  388.     autocmd StdinReadPre * let s:std_in=1
  389.     autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
  390.  
  391.     " Space opens/closes files/directories.
  392.     autocmd FileType nerdtree nmap <buffer> <space> o
  393. augroup END
  394.  
  395.  
  396. "}}}
  397.  
  398. "NERD TREE COMMENTER ----------------------------------------------{{{
  399. "_____ Globals _____
  400. let NERDSpaceDelims=1
  401. let NERDCompactSexyComs=1
  402. let NERDDefaultAlign='start'
  403. let NERDTrimTrailingWhitespace=1
  404.  
  405.  
  406. "}}}
  407.  
  408. "NERDTREE GIT PLUGIN ----------------------------------------------{{{
  409. let g:NERDTreeIndicatorMapCustom = {
  410.     \ "Modified"  : "",
  411.     \ "Staged"    : "✚",
  412.     \ "Untracked" : "✭",
  413.     \ "Renamed"   : "➜",
  414.     \ "Unmerged"  : "═",
  415.     \ "Deleted"   : "✖",
  416.     \ "Dirty"     : "✗",
  417.     \ "Clean"     : "✔︎",
  418.     \ 'Ignored'   : '',
  419.     \ "Unknown"   : "?"
  420.     \ }
  421.  
  422. let g:WebDevIconsOS = 'Darwin' " Set MacOS specific glyps (avoid system() call).
  423. let g:NERDTreeShowIgnoredStatus = 1 " Show ignored git files (might affect performance).
  424. " let g:WebDevIconsUnicodeDecorateFolderNodes = 1 " Enable folder glyphs.
  425.  
  426.  
  427. "}}}
  428.  
  429. " COMPLETION MANAGER ----------------------------------------------{{{
  430. "_____ Globals _____
  431. set shortmess+=c
  432.  
  433.  
  434. "_____ Mappings _____
  435. inoremap <expr> <CR> (pumvisible() ? "\<c-y>\<CR>" : "\<CR>")
  436.  
  437.  
  438. "}}}
  439.  
  440. " EASY MOTION -----------------------------------------------------{{{
  441. "_____ Mappings _____
  442. nmap <Leader>f <Plug>(easymotion-bd-w)
  443. nmap <Leader>w <Plug>(easymotion-overwin-w)
  444.  
  445.  
  446. "}}}
  447.  
  448. " AIRLINE TAB -----------------------------------------------------{{{
  449. "_____ Globals _____
  450. let g:airline_solarized_bg='dark'
  451. let g:airline#extensions#tabline#enabled = 1
  452. "let g:airline#extensions#bufferline#enabled = 1
  453. let g:airline#extensions#tabline#formatter = 'jsformatter'
  454. let g:airline_powerline_fonts = 1 "Allow Powerline Fonts
  455. "Define straight tab seperators
  456. "let g:airline#extensions#tabline#left_sep = ' '
  457. "let g:airline#extensions#tabline#left_alt_sep = '|'
  458.  
  459.  
  460. "}}}
  461.  
  462. " ULTISNIPS -------------------------------------------------------{{{
  463. "_____ Globals _____
  464. let g:UltiSnipsSnippetsDir ="~/.config/nvim/UltiSnips/" " Default snippets :UltiSipsEdits directory
  465. let g:UltiSnipsEnableSnipMate = 0 " Disable search for Snipmate snippets
  466. let g:UltiSnipsEditSplit="vertical" " :UltiSipsEdits splits vertically
  467.  
  468. " Key Bindings.
  469. let g:UltiSnipsExpandTrigger = "<tab>"
  470. let g:UltiSnipsJumpForwardTrigger = "<tab>"
  471. let g:UltiSnipsJumpBackwardTrigger = "<s-tab>"
  472. " let g:UltiSnipsJumpForwardTrigger = "<C-j>"
  473. " let g:UltiSnipsJumpBackwardTrigger = "<C-k>"
  474.  
  475. " Global Snippets Config
  476. let g:ultisnips_javascript = {
  477.      \ 'semi': 'never',
  478.      \ }
  479.  
  480.  
  481. "_____ Abbreviations _____
  482. cnoreabbrev editsnips :UltiSnipsEdit<CR>
  483.  
  484.  
  485. "_____ Autocommands _____
  486. autocmd FileType html UltiSnipsAddFiletypes javascript
  487.  
  488.  
  489. "}}}
  490.  
  491. " CTRLP -----------------------------------------------------------{{{
  492. "_____ Globals _____
  493. " let g:ctrlp_working_path_mode = 'ra' " Search within these nearest ancestors: .git .hg .svn .bzr _darcs
  494. " let g:ctrlp_extensions = ['dir'] " Default dir name search
  495. " let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard'] " Ignore files in .gitignore
  496. " let g:ctrlp_cmd = 'CtrlP'
  497.  
  498.  
  499. "}}}
  500.  
  501. " FZF -----------------------------------------------------------{{{
  502. "_____ Globals _____
  503. " Customize fzf colors to match the color scheme.
  504. let g:fzf_colors =
  505. \ { 'fg':      ['fg', 'Normal'],
  506.   \ 'bg':      ['bg', 'Normal'],
  507.   \ 'hl':      ['fg', 'Comment'],
  508.   \ 'fg+':     ['fg', 'CursorLine', 'CursorColumn', 'Normal'],
  509.   \ 'bg+':     ['bg', 'CursorLine', 'CursorColumn'],
  510.   \ 'hl+':     ['fg', 'Statement'],
  511.   \ 'info':    ['fg', 'PreProc'],
  512.   \ 'border':  ['fg', 'Ignore'],
  513.   \ 'prompt':  ['fg', 'Conditional'],
  514.   \ 'pointer': ['fg', 'Exception'],
  515.   \ 'marker':  ['fg', 'Keyword'],
  516.   \ 'spinner': ['fg', 'Label'],
  517.   \ 'header':  ['fg', 'Comment'] }
  518.  
  519. let g:fzf_history_dir = '~/.config/.fzf/fzf-history'
  520.  
  521.  
  522. "_____ Globals _____
  523. nnoremap <C-t> :GFiles<CR>
  524.  
  525. "}}}
  526.  
  527. " VIM FUGITIVE ----------------------------------------------------{{{
  528. "_____ Globals _____
  529. " Make EditorConfig comptible with Fugitive plugin/avoid loading remote files over ssh.
  530. let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*']
  531.  
  532.  
  533. "_____ Abbreviations _____
  534. " cnoremap gs<CR> Gstatus<CR>
  535.  
  536.  
  537. "}}}
  538.  
  539. " JAVASCRIPT LIBRARIES SYNTAX ------------------------------------{{{
  540. "_____ Globals _____
  541. let g:used_javascript_libs = 'underscore,react,flux,ramda,requirejs,jquery' " Set libraries used
  542.  
  543.  
  544. "}}}
  545.  
  546. " VIM JAVASCRIPT --------------------------------------------------{{{
  547. "_____ Globals _____
  548. let g:javascript_plugin_flow = 1
  549. let g:javascript_plugin_jsdoc = 1
  550. let g:javascript_plugin_ngdoc = 1
  551. let g:javascript_conceal_NaN = "ℕ"
  552. let g:javascript_conceal_null = "ø"
  553. let g:javascript_conceal_this = "@"
  554. let g:javascript_conceal_super = "Ω"
  555. let g:javascript_conceal_static = "•"
  556. let g:javascript_conceal_return = "⇚"
  557. let g:javascript_conceal_function = "ƒ"
  558. let g:javascript_conceal_undefined = "¿"
  559. let g:javascript_conceal_prototype = "¶"
  560. let g:javascript_conceal_arrow_function = "⇒"
  561. let g:javascript_conceal_noarg_arrow_function = "λ"
  562. "let g:javascript_conceal_underscore_arrow_function = "λ"
  563.  
  564.  
  565. "}}}
  566.  
  567. " VIM JS CONTEXT COLORING -----------------------------------------{{{
  568. "_____ Globals _____
  569. let g:js_context_colors_enabled = 0
  570. let g:js_context_colors_highlight_function_names = 1
  571. let g:js_context_colors_jsx = 1
  572.  
  573.  
  574. "_____ Mappings _____
  575. autocmd FileType javascript,typescript nnoremap <buffer> <leader>h :JSContextColorToggle<CR>
  576.  
  577. "}}}
  578.  
  579. " ALE -------------------------------------------------------------{{{
  580. "_____ Globals _____
  581. let g:ale_sign_error = '✘'
  582. let g:ale_statusline_format = ['X %d', '? %d', '']
  583. " %linter% is the name of the linter that provided the message
  584. " %s is the error or warning message
  585. let g:ale_echo_msg_format = '%linter% says %s'
  586. " Limit linters used for JavaScript.
  587. "let g:ale_linters = {
  588. "\  'javascript': ['flow', 'eslint']
  589. "\}
  590.  
  591.  
  592. "_____ Mappings _____
  593. " Next and previous error msg
  594. nnoremap <leader>an :ALENextWrap<CR>
  595. nnoremap <leader>ap :ALEPreviousWrap<CR>
  596.  
  597.  
  598. "}}}
  599.  
  600. " EMMET -----------------------------------------------------------{{{
  601. "_____ Globals _____
  602. " Replace class with className.
  603. let g:user_emmet_settings = {
  604. \  'javascript.jsx' : {
  605. \      'extends' : 'jsx',
  606. \  },
  607. \}
  608.  
  609.  
  610. "}}}
  611.  
  612. " DELIMITMATE -----------------------------------------------------{{{
  613. "_____ Globals _____
  614. let delimitMate_expand_cr = 1 " Expand pairs into block.
  615. let delimitMate_expand_space = 1 " Space pairs evenly.
  616.  
  617.  
  618. "_____ Mappings _____
  619. " Fix delimitMate_expand_cr functionality
  620. imap <expr> <CR> delimitMate#WithinEmptyPair() ?
  621.              \ "<Plug>delimitMateCR" :
  622.              \ "<CR>"
  623.  
  624.  
  625. "}}}
  626.  
  627. " VIM NOTES -------------------------------------------------------{{{
  628. "_____ Globals _____
  629. let g:notes_suffix = '.notes'
  630. let g:notes_directories = ['~/Documents/Notes']
  631.  
  632.  
  633. "}}}
  634.  
  635.  
  636. "}}}
  637. " TODOS -----------------------------------------------------------{{{
  638.  
  639. " Opens a files using gf (does not curently work)
  640. "set path+=**/src/main/**,**
  641. "set suffixesadd+=.js
  642.  
  643.  
  644. "turn off line wrapping when working on html files.
  645. "autocmd BufNewFile,BufRead *.html setlocal nowrap
  646.  
  647. " }}}
Advertisement