Giter VIP home page Giter VIP logo

vim-settings's Introduction

vim-settings

My vim settings.

Installation

setup.sh on *nix or setup.cmd on windows

  • run PlugInstall
  • You might have to enter folders like vim-files on windows and make sure that you have everything in order to install

vim-settings's People

Contributors

wallymathieu avatar

Stargazers

Gorden Brown avatar  avatar

Watchers

 avatar  avatar

vim-settings's Issues

coc

vimrc

set nocompatible
language C
silent function! WINDOWS()
    return  (has('win16') || has('win32') || has('win64'))
endfunction

" On Windows, also use '.vim' instead of 'vimfiles'; this makes synchronization
" across (heterogeneous) systems easier.
if WINDOWS()
  set runtimepath=$HOME/.vim,$VIM/vimfiles,$VIMRUNTIME
endif

if WINDOWS() " Keep swap files in one location
  set directory=$HOME/.vim/tmp//
else
  set directory=~/.vim/tmp//
endif



set showmode                      " Display the mode you're in.
set expandtab                     " Use spaces instead of tabs
if ! WINDOWS()
  colorscheme vibrantink
endif
syntax on
set showcmd                       " Display incomplete commands.
set showmode                      " Display the mode you're in.

set backspace=indent,eol,start    " Intuitive backspacing.

filetype plugin indent on

set ffs=unix,dos
set ff=unix                       " Line endings!

set expandtab
set shiftwidth=2
set softtabstop=2
set ts=2                          " Tab size 2
if WINDOWS()
  " let g:ruby_path = ':C:\tools\ruby213\bin'
  let g:FindFileIgnore = ['*.o', '*.pyc', '*/tmp/*', '*.dll', '*.exe', '*.png']
endif
set relativenumber

" Line numbers
autocmd FocusLost * :set number
autocmd InsertEnter * :set number
autocmd InsertLeave * :set relativenumber
autocmd CursorMoved * :set relativenumber

if WINDOWS()
call plug#begin('~/vimfiles/plugged-coc')
else
call plug#begin('~/.vim/plugged-coc')
end
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree', { 'on':  'NERDTreeToggle' }
Plug 'editorconfig/editorconfig-vim'
Plug 'junegunn/fzf'
Plug 'ionide/Ionide-vim'
Plug 'vim-syntastic/syntastic'
call plug#end()
" Nerd tree:
map <F3> :NERDTreeToggle<CR>
map <F4> :FZF<CR>

coc-settings.json

{
    "languageserver": {
        "csharp": {
            "command": "csharp-ls",
            "rootPatterns": [
                "*.sln",
                "git"
            ],
            "filetypes": ["cs", "csharp"]
        },
        "fsharp": {
            "command": "fsautocomplete",
            "args": ["--background-service-enabled"],
            "filetypes": ["fsharp"],
            "trace.server": "verbose",
            "initalizationOptions": {
                "AutomaticWorkspaceInit": true
            },
            "settings": {
                "FSharp.keywordsAutocomplete": true,
                "FSharp.ExternalAutocomplete": false,
                "FSharp.Linter": true,
                "FSharp.UnionCaseStubGeneration": true,
                "FSharp.UnionCaseStubGenerationBody": "failwith \"Not Implemented\"",
                "FSharp.RecordStubGeneration": true,
                "FSharp.RecordStubGenerationBody": "failwith \"Not Implemented\"",
                "FSharp.InterfaceStubGeneration": true,
                "FSharp.InterfaceStubGenerationObjectIdentifier": "this",
                "FSharp.InterfaceStubGenerationMethodBody": "failwith \"Not Implemented\"",
                "FSharp.UnusedOpensAnalyzer": true,
                "FSharp.UnusedDeclarationsAnalyzer": true,
                "FSharp.UseSdkScripts": true,
                "FSharp.SimplifyNameAnalyzer": false,
                "FSharp.ResolveNamespaces": true,
                "FSharp.EnableReferenceCodeLens": true
            }
        }
    }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.