{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/3596","labels_url":"https://api.github.com/repos/neovim/neovim/issues/3596/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/3596/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/3596/events","html_url":"https://github.com/neovim/neovim/issues/3596","id":114977873,"number":3596,"title":"neovim is very slow when editing .c files","user":{"login":"teamblubee","id":2129150,"avatar_url":"https://avatars.githubusercontent.com/u/2129150?v=3","gravatar_id":"","url":"https://api.github.com/users/teamblubee","html_url":"https://github.com/teamblubee","followers_url":"https://api.github.com/users/teamblubee/followers","following_url":"https://api.github.com/users/teamblubee/following{/other_user}","gists_url":"https://api.github.com/users/teamblubee/gists{/gist_id}","starred_url":"https://api.github.com/users/teamblubee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamblubee/subscriptions","organizations_url":"https://api.github.com/users/teamblubee/orgs","repos_url":"https://api.github.com/users/teamblubee/repos","events_url":"https://api.github.com/users/teamblubee/events{/privacy}","received_events_url":"https://api.github.com/users/teamblubee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-04T06:12:24Z","updated_at":"2015-11-04T11:00:10Z","closed_at":null,"body":"I have a very simple neovim custom build from source. Build command from build directory:\r\nrm -rf * && cmake cmake -DCMAKE_INSTALL_PREFIX:PATH=/opt/nvim CMAKE_BUILD_TYPE=Release ../ && make CMAKE_BUILD_TYPE=MinSizeRel && make install\r\n\r\ncurrently I have nvim 0.1.0 installed.\r\n\r\nI have vundle installed with a few plugins.\r\n```shell\r\n\" My Plugins\r\nPlugin 'VundleVim/Vundle.vim'\r\nPlugin 'Valloric/YouCompleteMe'\r\nPlugin 'rhysd/vim-clang-format'\r\n```\r\nthis is my init.vim file\r\n```shell\r\nset nocompatible              \" be iMproved, required\r\n\r\nfiletype off                  \" required\r\n\r\n\" set the runtime path to include Vundle and initialize\r\nset rtp+=~/.config/nvim/bundle/Vundle.vim\r\n\" set rtp+=/opt/nvim/bundle/Vundle.vim\r\ncall vundle#begin('~/.config/nvim/bundle')\r\n\" alternatively, pass a path where Vundle should install plugins\r\n\"call vundle#begin('~/some/path/here')\r\n\r\n\" let Vundle manage Vundle, required\r\nPlugin 'VundleVim/Vundle.vim'\r\n\r\n\" The following are examples of different formats supported.\r\n\" Keep Plugin commands between vundle#begin/end.\r\n\" plugin on GitHub repo\r\n\r\nPlugin 'Valloric/YouCompleteMe'\r\nPlugin 'rhysd/vim-clang-format'\r\n\r\n\" All of your Plugins must be added before the following line\r\ncall vundle#end()            \" required\r\nfiletype plugin indent on    \" required\r\n\" To ignore plugin indent changes, instead use:\r\n\"filetype plugin on\r\n\"\r\n\" Brief help\r\n\" :PluginList       - lists configured plugins\r\n\" :PluginInstall    - installs plugins; append `!` \r\n    \" to update or just :PluginUpdate\r\n\" :PluginSearch foo - searches for foo; append `!` \r\n\"   to refresh local cache\r\n\" :PluginClean      - confirms removal of unused plugins; append `!` \r\n\"   to auto-approve removal\r\n\"\r\n\" see :h vundle for more details or wiki for FAQ\r\n\" Put your non-Plugin stuff after this line\r\n\r\nlet g:python_host_prog  = '/usr/bin/python'\r\nlet g:python3_host_prog = '/usr/bin/python3'\r\n\r\nif !executable('clang-format') && executable('clang-format-3.5')\r\n  let g:clang_format#command = 'clang-format-3.5'\r\nendif\r\n\r\nautocmd FileType c nnoremap <buffer> <silent> <C-]> :YcmCompleter GoTo<cr>\r\nset tabstop=4 shiftwidth=4 expandtab\r\n\r\ncolorscheme elflord\r\n:set cc=80\r\n:set number\r\n:set relativenumber\r\n:syntax on\r\n:set encoding=utf-8\r\n:set scrolloff=3\r\n:set autoindent\r\n:set showmode\r\n:set showcmd\r\n:set hidden\r\n:set wildmenu\r\n:set wildmode=list:longest\r\n:set visualbell\r\n:set cursorline\r\n:set ttyfast\r\n:set ruler\r\n:set backspace=indent,eol,start\r\n:set laststatus=2\r\n\r\n\"YouCompleteMe\r\nlet g:ycm_global_ycm_extra_conf = \"~/.config/nvim/.ycm_extra_conf.py\"\r\n\r\n\"adding space when I press enter\r\n:nnoremap <Enter> o<ESC>\r\n:nnoremap <S-Enter> O<ESC>\r\n\r\n\"nvim terminal emulation window commands\r\n:tnoremap <Esc> <C-\\><C-n>\r\n:tnoremap <A-h> <C-\\><C-n><C-w>h\r\n:tnoremap <A-j> <C-\\><C-n><C-w>j\r\n:tnoremap <A-k> <C-\\><C-n><C-w>k\r\n:tnoremap <A-l> <C-\\><C-n><C-w>l\r\n:nnoremap <A-h> <C-w>h\r\n:nnoremap <A-j> <C-w>j\r\n:nnoremap <A-k> <C-w>k\r\n:nnoremap <A-l> <C-w>l\r\n\r\nset backupdir=~/.config/nvim/vim_bakup/backup//\r\nset directory=~/.config/nvim/vim_bakup/swap//\r\nset undodir=~/.config/nvim/vim_bakup/undo//\r\n```\r\n\r\nwhen I start editing even the simplest main..c file it slows taking even a few seconds from pressing i to go to editing mode, pressing esc and then i again is even slower!\r\n"},"comment":{"url":"https://api.github.com/repos/neovim/neovim/issues/comments/153684574","html_url":"https://github.com/neovim/neovim/issues/3596#issuecomment-153684574","issue_url":"https://api.github.com/repos/neovim/neovim/issues/3596","id":153684574,"user":{"login":"teamblubee","id":2129150,"avatar_url":"https://avatars.githubusercontent.com/u/2129150?v=3","gravatar_id":"","url":"https://api.github.com/users/teamblubee","html_url":"https://github.com/teamblubee","followers_url":"https://api.github.com/users/teamblubee/followers","following_url":"https://api.github.com/users/teamblubee/following{/other_user}","gists_url":"https://api.github.com/users/teamblubee/gists{/gist_id}","starred_url":"https://api.github.com/users/teamblubee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamblubee/subscriptions","organizations_url":"https://api.github.com/users/teamblubee/orgs","repos_url":"https://api.github.com/users/teamblubee/repos","events_url":"https://api.github.com/users/teamblubee/events{/privacy}","received_events_url":"https://api.github.com/users/teamblubee/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T11:00:10Z","updated_at":"2015-11-04T11:00:10Z","body":"Running some tests on my system, I uses neovim with YCM, neovim without YCM, vim with and without YCM and from prior experience working with neovim and YCM on mac with brew it's not YCM causing the issues.\r\n\r\nThere is an obvious pause when i use neovim to open almost any document."}}