{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/2676","labels_url":"https://api.github.com/repos/neovim/neovim/issues/2676/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/2676/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/2676/events","html_url":"https://github.com/neovim/neovim/issues/2676","id":77087685,"number":2676,"title":"[Discussion/Tracking] Defaults ","user":{"login":"fmoralesc","id":221465,"avatar_url":"https://avatars.githubusercontent.com/u/221465?v=3","gravatar_id":"","url":"https://api.github.com/users/fmoralesc","html_url":"https://github.com/fmoralesc","followers_url":"https://api.github.com/users/fmoralesc/followers","following_url":"https://api.github.com/users/fmoralesc/following{/other_user}","gists_url":"https://api.github.com/users/fmoralesc/gists{/gist_id}","starred_url":"https://api.github.com/users/fmoralesc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmoralesc/subscriptions","organizations_url":"https://api.github.com/users/fmoralesc/orgs","repos_url":"https://api.github.com/users/fmoralesc/repos","events_url":"https://api.github.com/users/fmoralesc/events{/privacy}","received_events_url":"https://api.github.com/users/fmoralesc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/neovim/neovim/labels/defaults","name":"defaults","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/neovim/neovim/milestones/5","html_url":"https://github.com/neovim/neovim/milestones/first%20release","labels_url":"https://api.github.com/repos/neovim/neovim/milestones/5/labels","id":652241,"number":5,"title":"first release","description":null,"creator":{"login":"justinmk","id":1359421,"avatar_url":"https://avatars.githubusercontent.com/u/1359421?v=3","gravatar_id":"","url":"https://api.github.com/users/justinmk","html_url":"https://github.com/justinmk","followers_url":"https://api.github.com/users/justinmk/followers","following_url":"https://api.github.com/users/justinmk/following{/other_user}","gists_url":"https://api.github.com/users/justinmk/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmk/subscriptions","organizations_url":"https://api.github.com/users/justinmk/orgs","repos_url":"https://api.github.com/users/justinmk/repos","events_url":"https://api.github.com/users/justinmk/events{/privacy}","received_events_url":"https://api.github.com/users/justinmk/received_events","type":"User","site_admin":false},"open_issues":24,"closed_issues":41,"state":"open","created_at":"2014-05-07T21:37:18Z","updated_at":"2015-05-19T20:45:32Z","due_on":null,"closed_at":null},"comments":25,"created_at":"2015-05-16T17:31:55Z","updated_at":"2015-05-20T13:02:47Z","closed_at":null,"body":"I'm opening this issue to consolidate the discussions in #276, #1664, #1667, #2071 and elsewhere, and to have a place to track progress on the change of default settings. \r\n\r\n# Notes\r\n\r\nPRs opened for this must have `options:` as a prefix.\r\n\r\nThere must be a unequivocal argument in favor of changing the defaults, or to reject the proposed changes.\r\n\r\n@justinmk has stressed the need to keep the `set -&` and `set -&vim` idioms behaving as they do now (which means the approach in #1667 is not viable) (see https://github.com/neovim/neovim/issues/1664#issuecomment-67419807, https://github.com/neovim/neovim/pull/1667#issuecomment-99282602) (There's been some discussion on whether it's worth it to keep the `set-& idiom`, but that is lower priority).\r\n\r\nThe `vi` defaults are not to be changed or removed (see https://github.com/neovim/neovim/pull/1667#issuecomment-99159044). This means that if the option uses the `P_VI_DEF` flag, you'll have to change it to `P_VIM` and change the default for vim only. E.g.:\r\n~~~ c\r\n  {\"wildmode\",    \"wim\",  P_STRING|P_VI_DEF|P_COMMA|P_NODUP,\r\n   (char_u *)&p_wim, PV_NONE,\r\n   {(char_u *)\"full\", (char_u *)0L} SCRIPTID_INIT},\r\n~~~\r\nbecomes\r\n~~~ c\r\n  {\"wildmode\",    \"wim\",  P_STRING|P_VIM|P_COMMA|P_NODUP,\r\n   (char_u *)&p_wim, PV_NONE,\r\n   {(char_u *)\"full\", (char_u *)\"list:longest,full\"} SCRIPTID_INIT},\r\n~~~\r\n\r\n\r\nChanging some of these settings will cause the tests to behave differently, so keep it in mind when working on this.\r\n\r\nAlso keep in mind you'll need to update vim_diff.txt as well.\r\n\r\nThese changes are not a priority, and could be introduced after the first release.\r\n\r\n# New defaults and progress\r\n\r\n(These were the settings I had in #1667, which are based on sensible.vim and the discussions in #276. Feel free to comment on them). \r\n\r\n- [ ] `filetype plugin indent on` **WIP** (https://github.com/neovim/neovim/pull/2675)\r\n- [ ] `syntax enable` **WIP** (https://github.com/neovim/neovim/pull/2675)\r\n- [ ] `set langnoremap`\r\n- [ ] `set autoindent`\r\n- [x] `set backspace=indent,eol,start` (https://github.com/neovim/neovim/pull/2639)\r\n- [ ] `set complete-=i` . Reason: `i` can make completion slow as currently implemented.\r\n- [ ] `set smarttab`\r\n- [ ] `set nrformats-=octal` **WIP** (https://github.com/neovim/neovim/pull/2668)\r\n- [x] ~~set ttimeout ttimeoutlen=100~~\r\n- [ ] `set incsearch`\r\n- [ ] `set hlsearch`\r\n- [ ] use `<C-L>` to clear the highlighting of :set hlsearch. `nnoremap <silent> <C-L> :nohlsearch<CR><C-L>`\r\n- [ ] `set mouse=a`\r\n- [ ] `set laststatus=2`\r\n- [ ] `set ruler`\r\n- [ ] `set showcmd`\r\n- [x] `set wildmenu` (https://github.com/neovim/neovim/pull/2677)\r\n- [x] `set wildmode=list:longest,full` (https://github.com/neovim/neovim/pull/2677)\r\n- [x] ~~set scrolloff=1~~ **REJECTED**  (there is a PR about it, though: https://github.com/neovim/neovim/pull/2687)\r\n- [x] ~~set sidescrolloff=5~~ **REJECTED** (because of the same reasons as `scrolloff=1`.\r\n- [ ] `set display+=lastline`\r\n- [ ] `set listchars=tab:>\\ ,trail:-,extends:>,precedes:<,nbsp:+`\r\n- [ ] `set formatoptions+=j` **WIP** (https://github.com/neovim/neovim/pull/2669)\r\n- [x] search upwards for tags file. `setglobal tags-=./tags  tags^=./tags;` (https://github.com/neovim/neovim/pull/2670)\r\n- [ ] `set autoread`\r\n- [ ] `set fileformats+=mac`\r\n- [ ] `set history=1000` (or more: @justinmk suggests 10000; see https://github.com/neovim/neovim/pull/2506)\r\n- [ ] `set tabpagemax=50`\r\n- [ ] `set viminfo^=!`\r\n- [ ] `set sessionoptions-=options`\r\n- [ ] `runtime! macros/matchit.vim`\r\n- [ ] Y yanks to the end of the line. `noremap Y y$`\r\n- [ ] allow undoing `<C-u>` (delete text typed in the current line) `inoremap <C-U> <C-G>u<C-U>`\r\n- [ ] `<home>` goes to the beginning of the text on first press and the beginning of the line on second. it alternates afterwards.  `noremap <expr> <home> virtcol('.') - 1 <= indent('.') && col('.') > 1 ? '0' : '_'`\r\n"},"comment":{"url":"https://api.github.com/repos/neovim/neovim/issues/comments/103876434","html_url":"https://github.com/neovim/neovim/issues/2676#issuecomment-103876434","issue_url":"https://api.github.com/repos/neovim/neovim/issues/2676","id":103876434,"user":{"login":"fmoralesc","id":221465,"avatar_url":"https://avatars.githubusercontent.com/u/221465?v=3","gravatar_id":"","url":"https://api.github.com/users/fmoralesc","html_url":"https://github.com/fmoralesc","followers_url":"https://api.github.com/users/fmoralesc/followers","following_url":"https://api.github.com/users/fmoralesc/following{/other_user}","gists_url":"https://api.github.com/users/fmoralesc/gists{/gist_id}","starred_url":"https://api.github.com/users/fmoralesc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmoralesc/subscriptions","organizations_url":"https://api.github.com/users/fmoralesc/orgs","repos_url":"https://api.github.com/users/fmoralesc/repos","events_url":"https://api.github.com/users/fmoralesc/events{/privacy}","received_events_url":"https://api.github.com/users/fmoralesc/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T13:02:46Z","updated_at":"2015-05-20T13:02:46Z","body":"> Can we come up with a better default for exiting terminal mode? C-\\C-n is not really \"discoverable\", I think.\r\n\r\n:+1: I keep forgetting it..."}}