Skip to content

Instantly share code, notes, and snippets.

@jasikpark
Created December 2, 2018 03:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasikpark/8ada83ac6bc53c91bc1f80bd6454da06 to your computer and use it in GitHub Desktop.
Save jasikpark/8ada83ac6bc53c91bc1f80bd6454da06 to your computer and use it in GitHub Desktop.
my .vimrc currently
" Example ~/.vimrc
" 2015.10
" Required for vim to be iMproved
set nocompatible
" Determines filetype from name to allow intelligent auto-indenting, etc.
filetype indent plugin on
" Enable syntax highlighting
syntax on
" Better command-line completion
set wildmenu
" Use case insensitive search except when using captial letters
set ignorecase
set smartcase
" When opening a new line and no file-specific indenting is enabled,
" keep same indent as the line you're currently on
set autoindent
" Display line numbers on the left
set number
" Indentation options, change according to personal preference
" Number of visual spaces per TAB
set tabstop=4
" Number of spaces in TAB when editing
set softtabstop=4
" Number of spaces indented when reindent operations (>> and <<) are used
set shiftwidth=4
" Convert TABs to spaces
set expandtab
" Enable intelligent tabbing and spacing for indentation and alignment
set smarttab
" Begin plugin commands
"
call plug#begin('~/.vim/plugged')
" Nord vim style
Plug 'arcticicestudio/nord-vim'
" Rust language support
Plug 'rust-lang/rust.vim'
" Language Server support
Plug 'autozimu/LanguageClient-neovim', {
\ 'branch': 'next',
\ 'do': 'bash install.sh',
\ }
call plug#end()
" set Nord as colorscheme
" colorscheme nord
Plug 'rust-lang/rust.vim'
let g:autofmt_autosave = 1
" Required for operations modifying multiple buffers like rename.
set hidden
let g:LanguageClient_serverCommands = {
\ 'rust': ['~/.cargo/bin/rustup', 'run', 'stable', 'rls'],
\ }
nnoremap <F5> :call LanguageClient_contextMenu()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment