From b8f455cbfb46a2162b1a0bcc8e6d746d65f59179 Mon Sep 17 00:00:00 2001 From: ChristianChiarulli Date: Sun, 17 Feb 2019 12:03:58 -0500 Subject: added stuff for js --- modules/general.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'modules/general.vim') diff --git a/modules/general.vim b/modules/general.vim index 5b187c79..b12f355c 100644 --- a/modules/general.vim +++ b/modules/general.vim @@ -14,15 +14,15 @@ set hidden " Required for specific actions that req set nowrap " display long lines as just one line set encoding=utf-8 " The encoding displayed set fileencoding=utf-8 " The encoding written to file -set ruler " show the cursor position all the time +set ruler " show the cursor position all the time set iskeyword+=- " treat dash separated words as a word text object" set mouse=a " Enable your mouse set splitbelow " Horizontal splits will automatically be below set splitright " Vertical splits will automatically be to the right set t_Co=256 " Support 256 colors set autochdir " Your working directory will always be the same as your working directory -set tabstop=4 " Insert 4 spaces for a tab -set shiftwidth=4 " Change the number of space characters inserted for indentation +set tabstop=2 " Insert 2 spaces for a tab +set shiftwidth=2 " Change the number of space characters inserted for indentation set smarttab " Makes tabbing smarter will realize you have 2 vs 4 set expandtab " Converts tabs to spaces set smartindent " Makes indenting smart @@ -92,6 +92,7 @@ nnoremap s :Startify nnoremap w :w nnoremap p :pclose nnoremap b :BuffergatorToggle +nnoremap ch :ColorToggle nnoremap gy :Goyo nnoremap hi :nohlsearch nnoremap hs :split @@ -112,6 +113,7 @@ nnoremap fr :call LanguageClient_textDocument_references() endfun nnoremap in :call OpenConfigFile('~/.config/nvim/init.vim') nnoremap bashrc :call OpenConfigFile('~/.bashrc') +nnoremap code :call OpenConfigFile('~/Library/Application Support/Code/User/settings.json') nnoremap h nnoremap j -- cgit v1.2.3