From 8db51aea3a5daa889406e51d3c42199c8ad9b839 Mon Sep 17 00:00:00 2001 From: Christian Chiarulli Date: Mon, 11 Feb 2019 15:19:13 -0500 Subject: gutentags makes things hang so I need to fix or replace it --- modules/general.vim | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 83 insertions(+), 3 deletions(-) (limited to 'modules/general.vim') diff --git a/modules/general.vim b/modules/general.vim index 23f7a85b..baf4cdaa 100644 --- a/modules/general.vim +++ b/modules/general.vim @@ -2,10 +2,90 @@ if &compatible set nocompatible endif - " Gives vim abilty to recognize filetypes filetype plugin indent on " Enables syntax highlighing syntax enable - -let g:python3_host_prog = '~/Miniconda/envs/neovim/bin/python3.7' +" display long lines as just one line +set nowrap +" The encoding displayed +set encoding=utf-8 +" The encoding written to file +set fileencoding=utf-8 +" Enable your mouse +set mouse=a +" Horizontal splits will automatically be below +set splitbelow +" Vertical splits will automatically be to the right +set splitright +" Support 256 colors +set t_Co=256 +" Your working directory will always be the same as your working directory +set autochdir +" Insert 4 spaces for a tab +set tabstop=4 +" Change the number of space characters inserted for indentation +set shiftwidth=4 +" Makes tabbing smarter will realize you have 2 vs 4 +set smarttab +" Converts tabs to spaces +set expandtab +" Makes indenting smart +set smartindent +" Good auto indent +set autoindent +" Always display the status line +set laststatus=2 +" Line numbers +set number +" Enable highlighting of the current line +set cursorline +let g:elite_mode=1 +" Disable arrow movement, resize splits instead. +if get(g:, 'elite_mode') + nnoremap :resize -2 + nnoremap :resize +2 + nnoremap :vertical resize -2 + nnoremap :vertical resize +2 +endif +" Alternate way to save +nnoremap :w +" Alternate way to quit +nnoremap :wq! +" Use control-c instead of escape +nnoremap +" : completion. +inoremap pumvisible() ? "\" : "\" +" F2 split vertical +nnoremap :vsplit +" F3 split horizontal +nnoremap :split +" Toggle Line numbers +nnoremap :set nonumber! +" Toggle NERDTree +nnoremap :NERDTreeToggle +" Get rid of highlights after search +nnoremap :nohlsearch +" Open terminal with F1 +nnoremap :10split term://bash +" insert mode for terminal +autocmd BufWinEnter,WinEnter term://* startinsert +autocmd BufLeave term://* stopinsert +" Remap window switch +nnoremap h +nnoremap j +nnoremap k +nnoremap l +" Remap terminal switch +tnoremap +tnoremap +tnoremap h +tnoremap j +tnoremap k +tnoremap l +" TAB in general mode will mov to text buffer +nnoremap :bnext +" SHIFT-TAB will go back +nnoremap :bprevious +" Map leader switch to whatever you want +let mapleader = "," -- cgit v1.2.3