dotfiles/vimrc

102 lines
2.2 KiB
VimL
Raw Permalink Normal View History

2024-04-27 15:54:16 +00:00
" Don't try to be vi compatible
set nocompatible
" Turn on syntax highlighting
syntax on
" Security
set modelines=0
" Show line numbers
set number
" Show file stats
set ruler
" Blink cursor on error instead of beeping (grr)
set visualbell
" Encoding
set encoding=utf-8
" Whitespace
set formatoptions=tcqrn1
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set noshiftround
" Cursor motion
set scrolloff=3
set backspace=indent,eol,start
set matchpairs+=<:> " use % to jump between pairs
" Move up/down editor lines
nnoremap j gj
nnoremap k gk
" Allow hidden buffers
set hidden
" Rendering
set ttyfast
" Status bar
set laststatus=2
" Last line
set showmode
set showcmd
" Searching
set hlsearch
set incsearch
set ignorecase
set smartcase
set showmatch
map <leader><space> :let @/=''<cr> " clear search
" Remap help key.
inoremap <F1> <ESC>:set invfullscreen<CR>a
nnoremap <F1> :set invfullscreen<CR>
vnoremap <F1> :set invfullscreen<CR>
" Formatting
map <leader>q gqip
set t_Co=256
set background=dark
let g:solarized_termcolors=256
let g:solarized_termtrans=1
2024-05-01 16:21:20 +00:00
"colorscheme slate
2024-04-27 15:54:16 +00:00
set mouse=
2024-05-01 16:21:20 +00:00
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
"call vundle#begin('~/some/path/here')
Plugin 'VundleVim/Vundle.vim'
Plugin 'tomasiser/vim-code-dark'
Plugin 'tpope/vim-fugitive'
2024-05-01 16:37:48 +00:00
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
2024-05-02 11:36:17 +00:00
Plugin 'preservim/nerdtree'
2024-07-05 23:32:55 +00:00
Plugin 'fholgado/minibufexpl.vim'
Plugin 'mzlogin/vim-markdown-toc'
Plugin 'mzlogin/vim-kramdown-tab'
2024-05-03 21:45:51 +00:00
Plugin 'Xuyuanp/nerdtree-git-plugin'
2024-11-03 15:56:02 +00:00
let g:joplin_token = '44aebeb0bc972b427acb1aa32866008d6ffa3173ff76f9428d48a00e6e9febf7bc63923fcadf7c50913cd441af2f2285cf04db2ee94725df893bf462580abcf4'
2024-05-01 16:21:20 +00:00
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
colorscheme codedark
2024-05-26 09:20:41 +00:00
let g:airline#extensions#tabline#formatter = 'default'
let g:airline_theme='soda'
let g:airline_powerline_fonts = 1
let g:airline_section_z = airline#section#create(['windowswap', '%3p%% ', 'linenr', ':%3v'])
2024-05-02 11:36:17 +00:00
nnoremap <leader>n :NERDTreeFocus<CR>
nnoremap <C-n> :NERDTree<CR>
nnoremap <C-t> :NERDTreeToggle<CR>
nnoremap <C-f> :NERDTreeFind<CR>