Showing posts with label vim. Show all posts
Showing posts with label vim. Show all posts

Saturday, June 25, 2022

neovim setup for development, beancount

https://neovim.io/ -- use tar with linux binaries or compile from source (not checked).

Install packer: https://github.com/wbthomason/packer.nvim

Setup lspconfig: https://github.com/neovim/nvim-lspconfig

run :PackerSync on changes to plugins.lua

setup https://github.com/matze/beancount-language-server

pip install neovim

Use CTRL-X-CTRL-O in insert mode.

Thursday, April 13, 2017

my vim config

.vimrc:


set fileencodings=utf-8,ucs-bom,default,latin1
set et
set ai
set si
set ts=4
set shiftwidth=4
set nosmartindent
set tabstop=4
set expandtab
syntax on
set sessionoptions=buffers,sesdir,options,winsize

so ~/myvim.vim

execute pathogen#infect()

###########

myvim.vim:

"set guifont=Ubuntu\ Mono\ 12
"set guifont=Noto\ Mono\ 13
"set guifont=DejaVu\ Sans\ Mono\ 13
set guifont=Liberation\ Mono\ 14
set guioptions=aegimrLt
set colorcolumn=80
set lines=34 columns=134
"IndentGuidesEnable
colo evening
map ï :FSHere

imap :NERDTreeToggle
nmap :NERDTreeToggle

imap :Bufferlistsw
nmap :Bufferlistsw

" nimrod support

fun! JumpToDef()
  if exists("*GotoDefinition_" . &filetype)
    call GotoDefinition_{&filetype}()
  else
    exe "norm! \"
  endif
endf

" Jump to tag
nn :call JumpToDef()
ino :call JumpToDef()i

"IndentGuidesEnable
" end of numrod support

let g:clang_library_path="/usr/lib/"
let g:indent_guides_enable_on_vim_startup = 1